package com.qtenv.datasync.service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qtenv.datasync.service.entity.Realtimegatherdata;
import com.qtenv.datasync.service.mapper.RealtimegatherdataMapper;
import com.qtenv.datasync.service.service.RealtimegatherdataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 实时数据采集表（大表） 服务实现类
 * </p>
 *
 * @author CBL
 * @since 2022-07-25
 */
@Service
public class RealtimegatherdataServiceImpl extends ServiceImpl<RealtimegatherdataMapper, Realtimegatherdata> implements RealtimegatherdataService {

    @Override
    public List<Realtimegatherdata> getByTenant(String tenantId) {
        return this.list(new QueryWrapper<Realtimegatherdata>().eq("tenant_id", tenantId));
    }
}
